package com.xbongbong.pro.smartsettings.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @description: 智能助手服务
 * @Author: hongxiao
 * @date: 2019-08-26 08:59
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class RunStrategyDTO implements Serializable {
    private static final long serialVersionUID = 2606082942127580247L;

    @NotEmpty(message = "{dto.msg.getHistory.xbbCode.NotEmpty}")
    private String xbbCode;
    /**
     * 是否为测试
     */
    private Boolean isTest;
    /**
     * 公司ids（测试使用）
     */
    private List<String> testCorpIds;
    /**
     * 执行的智能助手ids
     */
    private List<Long> testAiAssistantIds;
    /**
     * 测试触发条件数据
     */
    private Boolean testTriggerData;
    /**
     * 测试记录数据中有效记录
     */
    private Boolean testValidHistoryData;
    /**
     * 测试执行人
     */
    private Boolean testExecutor;
    /**
     * 测试入库记录数据
     */
    private Boolean testSaveHistoryData;
    /**
     * 测试消息、短信、新增访客待分发数据
     */
    private Boolean testDistributionData;

    /**
     * 数据不入库
     */
    private Boolean noSaveDistribution;

    public RunStrategyDTO() {
        // 默认为正常运行
        this.isTest = false;
        this.testTriggerData = false;
        this.testValidHistoryData = false;
        this.testExecutor = false;
        this.testSaveHistoryData = false;
        this.testDistributionData = false;
        this.noSaveDistribution = false;
    }
}
